package com.cy.service;

import com.cy.bean.Coach;
import com.cy.mapper.CoachMapper;
import com.cy.mapper.DriverMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CoachServiceImpl implements CoachService{

    @Autowired
    private CoachMapper coachMapper;

    @Override
    public List<Coach> coachList(Coach coach) {
        return coachMapper.coachList(coach);
    }

    @Override
    public int updateCoachState(Coach coach) {
        int info=coachMapper.updateCoachState(coach);
        return info;
    }

    @Override
    public int deleteCoach(Coach coach) {
        int info=coachMapper.deleteCoach(coach);
        return info;
    }

    @Override
    public int updateCoach(Coach coach) {
        int info=coachMapper.updateCoach(coach);
        return info;
    }

    @Override
    public int addCoach(Coach coach) {
        int info=coachMapper.addCoach(coach);
        return info;
    }
}
